﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DA.Model.Configure
{
    public class Appsetting
    {
        public DBs DBs { get; set; } = new DBs();
        public List<PLC> Plcs { get; set; } = new List<PLC>();
        public List<MES> Mes { get; set; } = new List<MES>();
        public List<Station> Stations { get; set; } = new List<Station>();
    }
    public class DBs
    {
        public string MySql { get; set; }
        public string SqlServer { get; set; }
        public string Sqlite { get; set; }
    }
    public class PLC
    {
        public string PlcID { get; set; }
        public string Description { get; set; }
        public string IpAddress { get; set; }
        public int Port { get; set; }
        public string HeartBeat { get; set; }
    }
    public class MES
    {
        public string MesID { get; set; }
        public string Description { get; set; }
        public string IpAddress { get; set; }
        public int Port { get; set; }
    }
    public class Station
    {
        public string Name { get; set; }
        public string StationId { get; set; }
        public string ProcessId { get; set; }
        public string MesID { get; set; }
        public string PlcID { get; set; }
        public string FlowName { get; set; }
        public List<PlcAddress> PlcAddresses { get; set; }
    }
    public class PlcAddress
    {
        public string Name { get; set; }
        public string Address { get; set; }
        public string DataType { get; set; }
    }
}
